<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
<script>




var sum=0;		
for(i=0;i<100;i++){
	if(i%2==0){
		sum=sum+i
		
	}else{
		continue;
	}	
}
alert("100以内所有偶数的和为: "+sum);

//for语句制作一个乘法口诀表

for (var i=1;i<=9;i++){
	document.write("<table border='1' cellpadding='0' cellspacing='0' bordercolor='#cccccc'>");
	document.write("<tr>");
	for (var j=1;j<=i;j++){
		document.write("<td width='60' align='center'>");
		document.write(j+"*"+i+"="+i*j);
		document.write("</td>");
		
	}
	document.write("<tr>")
	document.write("</table>");
}

//var now=new Date();
//var day=now.getDay();
//var week;
//switch (day){
//	case 1:
//		week="今天是星期一";
//		break;
//	case 2:
//		week="今天是星期二";
//		break;
//	case 3:
//		week="今天是星期三";
//		break;
//	case 4:
//		week="今天是星期四";
//		break;
//	case 5:
//		week="今天是星期五";
//		break;
//	case 6:
//		week="今天是星期六";
//		break;
//	case 7:
//		week="今天是星期七";
//		break;		
//}
//alert(week);
//document.write(week);




	
</script>
		
		
	</body>
</html>
